package com.project.bean;

import java.time.LocalDate;

public class FacilitiesBean {
    /**设备信息id*/
    private  int facilitiesId;
    /**设备损坏日期*/
    private LocalDate damageTime = LocalDate.now();
    /**设备状态*/
    private  String isSolve = "未解决";
    /**损坏描述*/
    private String describe;
    /**所在房间*/
    private RoomBean roomBean;

    public FacilitiesBean() {
    }

    public FacilitiesBean( String describe, int roomId) {
        this.describe = describe;
        this.roomBean = new RoomBean();
        this.roomBean.setRoomId(roomId);
    }

    public int getFacilitiesId() {
        return facilitiesId;
    }

    public void setFacilitiesId(int facilitiesId) {
        this.facilitiesId = facilitiesId;
    }

    public LocalDate getDamageTime() {
        return damageTime;
    }

    public void setDamageTime(LocalDate damageTime) {
        this.damageTime = damageTime;
    }

    public String getIsSolve() {
        return isSolve;
    }

    public void setIsSolve(String isSolve) {
        this.isSolve = isSolve;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public RoomBean getRoomBean() {
        return roomBean;
    }

    public void setRoomBean(RoomBean roomBean) {
        this.roomBean = roomBean;
    }

    @Override
    public String toString() {
        return "FacilitiesBean{" +
                "facilitiesId=" + facilitiesId +
                ", damageTime=" + damageTime +
                ", isSolve='" + isSolve + '\'' +
                ", describe='" + describe + '\'' +
                ", roomBean=" + roomBean +
                '}' + "\n";
    }
}
